import 'package:architecture/os_size.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../widgets/scatter_chart.dart';
import 'scatter_diagram_controller.dart';

class ScatterDiagramPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<ScatterDiagramController>(
        init: ScatterDiagramController(),
        builder: (controller) {
          return Scaffold(
            appBar: AppBar(title: Text('散点图')),
            body: Container(
              width: windowWidth,
              color: Colors.black.withAlpha(150),
              child: Center(child:
              ScatterChart(points: controller.data)),
            ),
          );
        });
  }
}
